package com.misty.dao.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.misty.dao.domain.Users;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;


@Data
@TableName(value = "comment")
public class CommentDto {

    private Integer id; //id

    private String content; //评论内容


    private LocalDateTime createTime = LocalDateTime.now(); //创建时间


    @TableField(value = "blog_id")
    private Integer blogId;

    @TableField(value = "user_id")
    private Integer userId;

    @TableField(exist = false)
    private Users user;

    private List<MessageDto> messageList;

}
